#ifndef __CONFIGWIDGET_PG_H__
#define __CONFIGWIDGET_PG_H__

#include <QtGui/QVBoxLayout>
#include <QtGui/QHBoxLayout>
#include <QtGui/QGridLayout>

#include <QtGui/QWidget>
#include <QtGui/QLabel>
#include <QtGui/QComboBox>
#include <QtGui/QLineEdit>
#include <QtGui/QGroupBox>
#include <QtGui/QPushButton>

#include "config.h"

namespace verema
{

class ConfigWidget_Pg : public QWidget
{
Q_OBJECT

public:
	ConfigWidget_Pg(QWidget*);
	~ConfigWidget_Pg() {};

/*
	void mainWindowPosition(QPoint mainWindowPosition) {m_mainWindowPosition = mainWindowPosition;};
	QPoint mainWindowPosition() {return(m_mainWindowPosition);};
	void show();
*/


    void loadData();

signals:

    void configChanged();

private slots:
	void definitionChange();
	void saveDefinitions();
    void close();

private:
    QVBoxLayout vbl_mainlayout;
    QGridLayout grl_top_layout;

    QGroupBox grb_groupbox;
    QGridLayout grl_groupbox_layout;

    QHBoxLayout hbl_button_layout;

	QLabel lbl_language, lbl_defaultview;
    QComboBox cmb_language, cmb_defaultview;
    //QGridLayout m_gridLayout;
    QLabel lbl_unit;
    QLineEdit led_unit;
    QLabel lbl_subunit;
    QLineEdit led_subunit;
    QLabel lbl_item;
    QLineEdit led_item;
	QPushButton btn_cancel, btn_save;

	QWidget *configWidget;
};

} // namespace verema

#endif // __CONFIGWIDGET_PG_H__
